package com.pdg.android.splorr.data.enums;

import com.pdg.android.splorr.R;

public enum CloseDoorActionResult {
	SUCCESS(true,R.string.door_close_action_result_success), 
	ALREADY_CLOSED(true,R.string.door_close_action_result_already_closed), 
	NO_DOOR_TO_CLOSE(true,R.string.door_close_action_result_no_door_to_close);
	private boolean success;
	private int stringId;

	CloseDoorActionResult(boolean theSuccess,int theStringId){
		setSuccess(theSuccess);
		setStringId(theStringId);
	}

	private void setStringId(int theStringId) {
		stringId = theStringId;
	}

	private void setSuccess(boolean theSuccess) {
		success = theSuccess;
	}

	public boolean isSuccess() {
		return success;
	}
	
	public int getStringId(){
		return stringId;
	}
}
